home *** CD-ROM | disk | FTP | other *** search
Wrap
# This is a generated file. Do not edit. from template import Handle, fillAttr, quoteAndFillAttr, funcTable from IOBuffer import IOBuffer from xhtmltools import urlencode from templatehelper import quoteattr, escape, evalKey, toUni def fillTemplate(data, domHandler): # Start of handle handle = Handle(domHandler) out = IOBuffer() out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n") out.write(u'<html dtvPlatform="') out.write(quoteattr(urlencode(toUni(evalKey(u'dtvPlatform',data))))) out.write(u'" eventCookie="') out.write(quoteattr(urlencode(toUni(evalKey(u'eventCookie',data))))) out.write(u'" xmlns:t=') out.write(quoteAndFillAttr(u'http://www.participatorypolitics.org/',data)) out.write(u' xmlns=') out.write(quoteAndFillAttr(u'http://www.w3.org/1999/xhtml',data)) out.write(u' xmlns:i18n=') out.write(quoteAndFillAttr(u'http://www.participatoryculture.org/i18n',data)) out.write(u'>\n\n <head>\n <meta content=') out.write(quoteAndFillAttr(u'text/html; charset=utf-8',data)) out.write(u' http-equiv=') out.write(quoteAndFillAttr(u'content-type',data)) out.write(u'></meta>\n </head>\n\n <body>\n\n <p class=') out.write(quoteAndFillAttr(u'main-video-details-left',data)) out.write(u'><strong>') out.write(escape(evalKey(u'this getReleaseDate',data))) out.write(u'</strong></p>\n <p class=') out.write(quoteAndFillAttr(u'main-video-details-right',data)) out.write('>') out.write(escape(evalKey(u'this getSizeForDisplay',data))) out.write(u'</p>\n <p class=') out.write(quoteAndFillAttr(u'main-video-details-left',data)) out.write('>') out.write(escape(evalKey(u'this getDuration',data))) out.write(u'</p>\n <p class=') out.write(quoteAndFillAttr(u'main-video-details-right',data)) out.write('>') out.write(escape(evalKey(u'this getFormat',data))) out.write(u'</p>\n\n </body>\n\n</html>') out.close() return (out, handle)